]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
configure: Depend on gnome-bluetooth 3.1.0, fix linking issue
authorColin Walters <walters@verbum.org>
Thu, 30 Jun 2011 18:19:20 +0000 (14:19 -0400)
committerColin Walters <walters@verbum.org>
Thu, 30 Jun 2011 18:20:34 +0000 (14:20 -0400)
Most importantly, the new variables include an rpath for the gnome-bluetooth
directory which fixes a linking problem; introspetion needs to be able to find
the library while running the introspected binary at build time.

Also, this removes some hardcoding in the configure script.

configure.ac

index f722c139213e729e026de3742e625a3f4525bbe9..e42c027e317435c6a15c54217569628dd6d3cb70 100644 (file)
@@ -126,9 +126,9 @@ PKG_CHECK_MODULES(GVC, libpulse libpulse-mainloop-glib gobject-2.0)
 PKG_CHECK_MODULES(DESKTOP_SCHEMAS, gsettings-desktop-schemas >= 0.1.7)
 
 AC_MSG_CHECKING([for bluetooth support])
-PKG_CHECK_EXISTS([gnome-bluetooth-1.0 >= 2.90.0],
-        [BLUETOOTH_DIR=`$PKG_CONFIG --variable=libdir gnome-bluetooth-1.0`/gnome-bluetooth
-        BLUETOOTH_LIBS="-L'$BLUETOOTH_DIR' -lgnome-bluetooth-applet"
+PKG_CHECK_EXISTS([gnome-bluetooth-1.0 >= 3.1.0],
+        [BLUETOOTH_DIR=`$PKG_CONFIG --variable=applet_libdir gnome-bluetooth-1.0`
+        BLUETOOTH_LIBS=`$PKG_CONFIG --variable=applet_libs gnome-bluetooth-1.0`
         AC_SUBST([BLUETOOTH_LIBS],["$BLUETOOTH_LIBS"])
         AC_DEFINE_UNQUOTED([BLUETOOTH_DIR],["$BLUETOOTH_DIR"],[Path to installed GnomeBluetooth typelib and library])
         AC_DEFINE([HAVE_BLUETOOTH],[1],[Define if you have libgnome-bluetooth-applet])